<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>종이천하 내맞춤쪽 background</title>
</head>
<body onload="init();">
</body>
<script type="text/javascript" src="background.js"></script>
<script>
	function init()
	{
		initLocalStorage();

		var mb_id  = localStorage["mb_id"];
		var apikey = localStorage["apikey"];

		if (mb_id && apikey) {
			requestMyPage();
			requestNewPosts();
			requestMyProfile();
		}
	}

	chrome.extension.onRequest.addListener(
		function(request, sender, sendResponse) {
			if (request.options == "saved") {
				requestMyPage();
				requestNewPosts();
				requestMyProfile();
			}
		}
	);
</script>
<script src="analytics.js"></script>
</html>
